<div id="miniamazonContent">

<{include file="db:`$mydirname`_header.html"}>

<h1><{$access_best}></h1>

<{if $items}>
  <table border="0" cellspacing="0">
    <tr>
      <th>No.</th>
      <th><{$smarty.const._MD_MINIAMAZON_TITLE}></th>
      <th><{$smarty.const._MD_MINIAMAZON_CAT}></th>
      <th><{$smarty.const._MD_MINIAMAZON_DATE}></th>
      <th><{$smarty.const._MD_MINIAMAZON_CLICKS}></th>
    </tr>
  <{foreach from=$items item=item key=index}>
    <tr class="<{cycle values="odd, even"}>">
      <td><{$index+1}></td>
      <td>
        <a href="<{$myurl}>/index.php?lid=<{$item.lid}>"><{$item.title}></a>
      </td>
      <td>
        <{if $cats[$item.cid]}>
          <a href="<{$myurl}>/index.php?cid=<{$item.cid}>"><{$cats[$item.cid]}></a>
        <{else}>
          -
        <{/if}>
      </td>
      <td><{$item.regdate|formatTimestamp:"m"}></td>
      <td><{$item.clicks}></td>
    </tr>
  <{/foreach}>
  </table>
<{else}>
  <{$smarty.const._MD_MINIAMAZON_NOITEM}>
<{/if}>

<{include file="db:`$mydirname`_footer.html"}>

</div>
